import Vue from "vue"
import Vuex from "vuex"
import admin from './admin'
import shop from './shop'
import goods from './goods'
Vue.use(Vuex)

const state = {
    isLoading: false,// 是否加载
    pageSum: 1, // 总页数
}
const mutations = {
    changeIsLoading(state, bol) {
        state.isLoading = bol;
    },
    changePageSum(state, pageSum) {
        state.pageSum = pageSum

    },
   
}
const modules = {
    admin,
    shop,
    goods
}
export default new Vuex.Store({
    state,
    mutations,
    modules
})